const http = uni.$u.http

export function login_code(params) {
	return http.get('/admin/login/code', {params})
}

export function login(params) {
	return http.post('/admin/login/code', null,{params})
}

export function getInfo() {
	return http.get('/user/info')
}

export function logout() {
	return http.post('/user/logout')
}